<div class="hero-unit">
<h3>添加课程安排</h3>
<input type="hidden" value="<?=$base?>"  id="base" />
<form id="add_form" onsubmit="return add_form();" action="<?=$base?>admin/course/course_plan_add" method="post">
<div class="row-fluid">
    <div class="span4">
        <label for='name'>课程：</label>
        <select id="name" name="c_id" onclick="change_course()" required>
            <option value=''></option>
            <?php foreach ($course_list as $key => $value):?>
                <option value="<?=$value->id?>"><?=$value->name?>(<?=$style[$value->style]?>)</option>
            <?php endforeach;?>
        </select><br/>
        <label for="place">上课地点：</label>
        <input id="place" name="place" type="text" required/><br/>
        <label for="timeLong">上课周次：</label>
        <input id="timeLong" name="timeLong" type="text" required /><br/>
        <label for="weekday">星期：</label>
        <select id="weekday" name="weekday" required>
            <option value=''></option>
            <option value="1">星期一</option>
            <option value="2">星期二</option>
            <option value="3">星期三</option>
            <option value="4">星期四</option>
            <option value="5">星期五</option>
            <option value="6">星期六</option>
            <option value="7">星期日</option>
        </select><br/>
        <label for="section">第几节</label>
        <select id="section" name="section" required>
            <option value=''></option>
            <option value="1">第一节</option>
            <option value="2">第二节</option>
            <option value="3">第三节</option>
            <option value="4">第四节</option>
            <option value="5">第五节</option>
        </select><br/>
    </div>
    <div class="span4">
        <label for="teacher">教师：（必修）</label>
        <select id="teacher" name="teacher">
            <option value=''></option>
        </select>
        <label for="academy">学院：</label>
        <select  id="academy" name="academy" onclick="change_select()">
            <option value=""></option>
            <?php foreach ($academy_list as $key => $value) :?>
                <option value="<?=$value->number?>"><?=$value->name?></option>
            <?php endforeach;?>
        </select><br/>
        <label for="major">专业：</label>
        <select id="major" name="major" disabled="disabled">
                    <option value=""></option>
        </select><br/>
        <label for="grade">年级：</label>
        <select id="grade" name="grade">
            <option value=""></option>
            <option value="10">10级</option>
            <option value="11">11级</option>
            <option value="12">12级</option>
            <option value="13">13级</option>
            <option value="14">14级</option>
            <option value="15">15级</option>
            <option value="17">17级</option>
            <option value="18">18级</option>
            <option value="19">19级</option>
        </select><br/>
        <label for="semester">学期：</label>
        <select id="semester" name="semester">
            <option value=''></option>
            <option value="1">大一上学期</option>
            <option value="2">大一下学期</option>
            <option value="3">大二上学期</option>
            <option value="4">大二下学期</option>
            <option value="5">大三上学期</option>
            <option value="6">大三下学期</option>
            <option value="7">大四上学期</option>
            <option value="8">大四下学期</option>
        </select><br/>
    </div>
    <div class="span4">
        <label for="count">总数：（选修）</label><input type="text" id="count" name="count"><br/>
        <label for="year">学年：（选修）</label>
        <select id="year" name="year">
            <option value=''></option>
            <option value='2014-1'>2014年上学期</option>
            <option value='2014-2'>2014年下学期</option>
            <option value='2015-1'>2015年上学期</option>
            <option value='2015-2'>2015年下学期</option>
            <option value='2016-1'>2016年上学期</option>
            <option value='2016-2'>2016年下学期</option>
            <option value='2017-1'>2017年上学期</option>
            <option value='2017-2'>2017年下学期</option>
            <option value='2018-1'>2018年上学期</option>
            <option value='2018-2'>2018年下学期</option>
        </select>
    </div>
    </div>
    <div class="row-fluid">
     <input type="submit" value="添加" />
    </div>
</form>
</div>